<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib prefix="myTag" tagdir="/WEB-INF/tags" %>

<c:set var="ctx" value="${pageContext.request.contextPath}" />
<c:set var="rowCount" value="${data_list.size}" />
<c:set var="offset" value="${data_list.number * data_list.size}" />
<table class="table table-striped table-hover">
    <thead>
    <tr>
        <th>序号</th>
        <th>订单号</th>
        <%--<th>登录人姓名</th>--%>
        <%--<th>登录人性别</th>--%>
        <%--<th>登录人手机号</th>--%>
        <%--<th>登录人证件号</th>--%>
        <%--<th>登录人联系地址</th>--%>
        <th>路线</th>
        <th>类型</th>
        <th>价格(元)</th>
        <th>订单总价(元)</th>
        <th>姓名</th>
        <th>性别</th>
        <th>手机号</th>
        <th>证件号</th>
        <th>联系地址</th>
        <th>报名时间</th>
    </tr>
    </thead>
    <tbody>
    <c:forEach var="applicant" items="${data_list.content}" varStatus="status">
        <tr>
            <td class="mw-no">${status.count + offset}</td>
            <td class="mw-no">${applicant.orderId}</td>
            <%--<td class="mw-100" >${applicant.user.name}</td>--%>
            <%--<td class="mw-100" ><myTag:gender gender="${applicant.user.gender}"/></td>--%>
            <%--<td class="mw-100" >${applicant.user.phone}</td>--%>
            <%--<td class="mw-100" >${applicant.user.card}</td>--%>
            <%--<td><div class="text-ellipsis-88" title="${applicant.user.address}">${applicant.user.address}</div></td>--%>
            <c:forEach var="product" items="${data}">
                <c:if test="${product.id == applicant.productId}">
                    <td><div class="text-ellipsis-88" title="${product.name}">${product.name}</div></td>
                </c:if>
            </c:forEach>
            <td class="mw-100" >${applicant.typeName}</td>
            <td class="mw-text3" >${applicant.typePrice}</td>
            <td class="mw-text3" >${applicant.orderPrice}</td>
            <td class="mw-100" >${applicant.name}</td>
            <td class="mw-100" ><myTag:gender gender="${applicant.gender}"/></td>
            <td class="mw-100" >${applicant.phone}</td>
            <td class="mw-100" >${applicant.card}</td>
            <td><div class="text-ellipsis-88" title="${applicant.address}">${applicant.address}</div></td>
            <td class="mw-100" ><fmt:formatDate value="${applicant.createTime}" pattern="yyyy-MM-dd"/></td>
        </tr>
    </c:forEach>
    <c:if test="${data_list.content.size() < rowCount}">
        <c:forEach begin="1" end="${rowCount - data_list.content.size()}">
            <tr>
                <%--<td>&nbsp;</td>--%>
                <%--<td>&nbsp;</td>--%>
                <%--<td>&nbsp;</td>--%>
                <%--<td>&nbsp;</td>--%>
                <%--<td>&nbsp;</td>--%>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
            </tr>
        </c:forEach>
    </c:if>
    </tbody>
</table><c:set var="page" value="${data_list}" />
<%@ include file="_pagination.jsp" %>
